<?php

namespace App\Models\Account;

use App\Models\BaseModel;

class UserGroupMenuAction extends BaseModel
{

    protected $table = 'user_group_menu_actions';
    protected $fillable = ['group_id', 'menu_id', 'action_id'];

    public function menus()
    {
        return $this->belongsTo('App\Models\Common\Menu', 'menu_id');
    }

    public function groups()
    {
        return $this->belongsTo('App\Models\Account\UserGroup', 'group_id');
    }

    public function actions()
    {
        return $this->belongsTo('App\Models\Common\MenuAction', 'action_id');
    }

}
